﻿using DAO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BUS
{
    public class OrdersProductDetailBUS
    {
        OrdersProductDetailDAO db = new OrdersProductDetailDAO();
        public List<OrdersProductDetail> GetListAll()
        {
            return db.GetListAll();
        }
        public List<OrdersProductDetail> GetListAll_Sort()
        {
            return db.GetListAll_Sort();
        }
        public List<OrdersProductDetail> GetListTop10()
        {
            return db.GetListTop10();
        }
        public OrdersProductDetail GetById(int id)
        {
            return db.GetById(id);
        }



        public bool Insert(OrdersProductDetail c)
        {
            return db.Insert(c);
        }

        public bool Edit(OrdersProductDetail ca)
        {
            return db.Edit(ca);
        }

        public bool Delete(int id)
        {
            return db.Delete(id);
        }
        public List<OrdersProductDetail> GetListByOrderId(int id)
        {
            return db.GetListByOrderId(id);
        }
    }
}
